home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4068 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news.genie.net!usenet
  2. From: i.einman@genie.com (IAN J. EINMAN)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Datatypes bitmap problems
  5. Date: 17 Feb 1996 22:45:22 GMT
  6. Organization: via GEnie Services (1-800-638-9636 or info@genie.com)
  7. Sender: i.einman@genie.com (IAN J. EINMAN)
  8. Message-ID: <4g5lq2$6pn@rock101.genie.net>
  9. NNTP-Posting-Host: rock102.is.ge.com
  10.  
  11. >>1. If I copy it to another bitmap, why is the remapping trashed?
  12. 2. How do I keep datatypes from freeing it when I dispose of the Object?
  13.  
  14.  
  15. 1. You are copying the wrong bitmap, most likely.  There is a PDTA_BitMap
  16. and a PDTA_SourceBitMap, make sure to use the right one.
  17.  
  18. 2. You don't.  You need to copy it, or keep the object.  You wouldn't want to keep it,
  19. since you wouldn't know how to free it later.  I usually keep the object.  Use
  20. PDTA_FreeSourceBitMap, TRUE and the original bitmap will get deleted, only the source
  21. <<<not source ignore that///  only the remapped bitmap is left.  The overhead of the
  22. datatype object isn't that much.  Just free the object later, when you're done with the
  23. bitmap.
  24.  
  25.